/* 
 * File:   Log.h
 * Author: artem
 *
 * Created on November 17, 2011, 12:06 AM
 */

#ifndef LOG_H
#define LOG_H

#define LOG_DEBUG(str,...) Log::write("%s:%s:%d DEBUG " str, __FILE__, __func__, __LINE__, ##__VA_ARGS__)
#define LOG_ERROR(str,...) Log::write("%s:%s:%d ERROR " str, __FILE__, __func__, __LINE__, ##__VA_ARGS__)

namespace Log
{
	bool init(const char *name);
	void free();
	
	void write(const char *format, ...);
}

#endif /* LOG_H */
